void pixelar_c (
	unsigned char *src,
	unsigned char *dst,
	int m, //alto (cant. de filas) es multiplo de 4 la de destino
	int n, //ancho (cant. de columnas) es multiplo de 4 la de destino
	int src_row_size,
	int dst_row_size
) 
{ 
	int pixelesBloque = 16;
	int restoFilas = m%4;
	int restoCol =n%4;  
	int promedioBloque;	
	
	//No recorremos los pixeles que quedan afuera de tomar 16 pixeles.	
	for (int j = 0; j < (m-restoFilas); j+=4){
				
		for (int i = 0; i < (n-restoCol); i+=4){
			
			
			promedioBloque = src[i+j*src_row_size] + src[i+(j+1)*src_row_size] + src[i+(j+2)*src_row_size] + src[i+(j+3)*src_row_size] +
							 src[i+1+j*src_row_size] + src[i+1+(j+1)*src_row_size] + src[i+1+(j+2)*src_row_size] + src[i+1+(j+3)*src_row_size] +
							 src[i+2+j*src_row_size] + src[i+2+(j+1)*src_row_size] + src[i+2+(j+2)*src_row_size] + src[i+2+(j+3)*src_row_size] +
							 src[i+3+j*src_row_size] + src[i+3+(j+1)*src_row_size] + src[i+3+(j+2)*src_row_size] + src[i+3+(j+3)*src_row_size];
					
			promedioBloque = promedioBloque / pixelesBloque; //No hace falta saturar
			
			//Pongo los pixeles en la imagen destino
			for (int h = 0; h < 4; h+=1){
				dst[i+(j+h)*dst_row_size] = promedioBloque;
				dst[i+(j+h)*dst_row_size+1] = promedioBloque;
				dst[i+(j+h)*dst_row_size+2] = promedioBloque;
				dst[i+(j+h)*dst_row_size+3] = promedioBloque;
			}
		}
	
	}
} 

